package com.erp.erp_dao.Blueprint;

import com.erp.erp_entitys.Blueprint.BlueprintContent;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BlueprintContentMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(BlueprintContent record);

    int insertSelective(BlueprintContent record);

    BlueprintContent selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(BlueprintContent record);

    int updateByPrimaryKey(BlueprintContent record);

    /**
     * 根据主表ID 获取明细集合
     * @param blueprintId
     * @return
     */
    List<BlueprintContent> findBlueprintContentByBlueprintId(@Param("blueprintId") Integer blueprintId);

    /**
     * 根据ids删除明细
     * @param ids
     * @return
     */
    int deleteByIds(@Param("ids") List<Integer> ids);
}